﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebBags.Product>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%=Resources.lbResources.lbDetailProductTitle %>
</asp:Content>
<asp:Content ID="Resgister" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript" src='<%=Url.Content("~/scripts/galleria-1.2.2.min.js")%>'></script>

    <script type="text/javascript" src='<%=Url.Content("~/scripts/galleria.classic.min.js")%>'></script>

    <link href="<%=Url.Content("~/Content/galleria.classic.css")%>" rel="stylesheet"
        type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="width: 100%">
        <div style="float: left; width: 572px">
            <div id="content">
                <div class="lbProduct">
                    <%
                        string strLang = System.Globalization.CultureInfo.CurrentCulture.DisplayName.Substring(0, 1).ToLower();                        
                    %>
                    <%= Resources.lbResources.lbDetailProductMain %>
                    >>
                    <%= Model.Name_vn %>
                </div>
                <div style="height: 10px">
                </div>
                <div id="gallery">
                    <img src='<%=Url.Content("~/uploads/" + Model.ImageUrl ) %>' alt="" width="300px"
                        height="300px" />
                    <%
                        foreach (WebBags.ImageProduct p in (IEnumerable<WebBags.ImageProduct>)ViewData["lstImage"])
                        {                                                                
                    %>
                    <img src='<%=Url.Content("~/uploads/" + p.Name ) %>' alt="" width="300px" height="300px" />
                    <%} %>
                </div>

                <script type="text/javascript">
                    Galleria.loadTheme('/scripts/galleria.classic.min.js');
                    $("#gallery").galleria({
                        width: 500,
                        height: 430
                    });
                </script>

                <%
                    if (!string.IsNullOrEmpty(Model.Size_en))
                    {
                %>
                <br />
                <span>
                    <%= Resources.lbResources.lbDetailProductSize%>:</span>
                <%=(strLang=="v")?Model.Size_vn: Model.Size_en%>
                <%} %>
                <%
                    if (!string.IsNullOrEmpty(Model.Description_vn))
                    {
                %>
                <br />
                <span>
                    <%= Resources.lbResources.lbDetailProductDescription%></span>
                <br />
                <%=(strLang=="v")?Model.Description_vn: Model.Description_en%>
                <%} %>
                <br />
                <span>
                    <%= Resources.lbResources.lbDetailProductPrice %>:</span>
                <%=Model.Price %>
            </div>
        </div>
        <div style="float: left; width: 235px; margin-left: 2px">
            <% Html.RenderPartial("~/Views/UserControl/ucLogon.ascx"); %>
        </div>
    </div>
</asp:Content>
